//
//  HWRegisterAndLoginManager.h
//  嗨文
//
//  Created by 响当当 on 2019/3/20.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import <Foundation/Foundation.h>

#define RegisterAndLoginManager [HWRegisterAndLoginManager manager]

@interface HWRegisterAndLoginManager : NSObject
/**
 *   初始化
 */
+ (HWRegisterAndLoginManager *_Nonnull)manager;

/**
 *   注册账号 1.nickName 2.phoneNumber 3.password 4.code
 */
- (void)registUser:(NSDictionary *_Nonnull)prarmers sucess:(void(^_Nullable)(id _Nonnull acceptData))sucess fail:(nonnull void(^)( NSError * _Nullable error))fail;
/**
 *   获取验证码
 */
- (void)getCodeWithPhone:(NSString *_Nonnull)phoneStr Sucess:(void(^_Nonnull)(id _Nonnull acceptData))sucess fail:(nonnull void(^ )( NSError * _Nullable error))fail;

/**
 *  登陆请求
 */
- (void)getLoginRequestWithParamers:(NSDictionary *)paramers sucess:(void (^)(void))sucess fail:(void (^)(NSError *error))fail;

/**
 *  验证token
 */
- (void)checkTokenParamers:(NSDictionary *_Nonnull)prarmers sucess:(void(^_Nullable)(id _Nonnull acceptData))sucess fail:(nonnull void(^)( NSError * _Nullable error))fail;
@end
